package com.xkstream.client.base;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;

/**
 * Created by xiaoyi on 2016/8/22.
 */
public abstract class BaseRecycleViewAdapter extends RecyclerView.Adapter {
    protected Context mContext;
    protected LayoutInflater mInflater;
    public static final int NO_NETWORK=1;
    public static final int NO_DATA=0;
    protected  int type;

    public BaseRecycleViewAdapter(Context mContext) {
        this.mContext = mContext;
        mInflater = LayoutInflater.from(mContext);
    }

    protected RecycleViewItemClickListener mItemClickListener;

    public void setOnItemClickListener(RecycleViewItemClickListener listener) {
        mItemClickListener = listener;
    }
    public void setEmptyPageType(int type){
        this.type=type;
    }
    protected class EmptyHolder extends RecyclerView.ViewHolder{

        public EmptyHolder(View itemView) {
            super(itemView);
        }
    }
}
